import time
import requests
import threading
import tornado.web
import http.client
times = 3000

def tcpSend():
    client = requests.session()
    url = "http://192.168.0.102:8888"
    headers = {"Content-type": "application/x-www-form-urlencoded", "Accept": "text/plain",
                "Connection": "Keep-Alive"}

    while True:

        rust = client.get(url=url, headers=headers)
        print(rust.text)
        time.sleep(3)

if __name__ == "__main__":
    for i in range(times):
        t = threading.Thread(target=tcpSend)
        t.start()
    # tcpSend()